﻿{% extends "base.html" %}

{% block content %}

	{% if form.errors %}
        <p style="color: red;">
            Please correct the error{{ form.errors|pluralize }} below.
        </p>
    {% endif %}
	{%if case%}
	认证失败请重新登陆
	{%endif%}
	 <h1 class="centered">登陆 <span class="header-separator-text">or</span> <a href="http://localhost:8000/accounts/register/">创建账户</a></h1>
	<fieldset class="create-account-box rc-border">
	<form action="/accounts/login/" method="post" >{% csrf_token %}
      {{ form.as_p }}
	<input type="submit" value="提交" />
	<input type="Reset" value="重置" />
	
    </form>
	</fieldset>
{% endblock %}